package com.hyz.controller;

import com.hyz.clients.ServerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HGD
 * @date 2022/9/27 14:33
 */
@RestController
@RequestMapping("/client")
public class ClientController {
    @Autowired
    private ServerClient client;

    @GetMapping("/hello")
    public String hello() {
        return client.postHello();
    }
}
